<?php
include("include/db_connect.php");
$query = mysql_query("Select date_end_show from dc_tour ");
while($row = mysql_fetch_array($query))
{
	if($row[0]<date("Y-m-d"))
	{
		mysql_query("Update dc_tour set State=2 Where date_end_show='".$row[0]."'");
	}
}
header("Location:tourList.php");
?>
